package com.uniview.controller;

import com.uniview.dto.RespDTO;
import com.uniview.feign.client.AuthServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * created by lux
 */
@Controller
public class GatewayController {
    @Autowired
    AuthServiceClient authServiceClient;

    @RequestMapping("/test")
    public RespDTO test(@RequestBody Map<String,Object> params){
        return authServiceClient.test(params);
    }
}
